import request from '@/utils/request';

// 查询评分表下拉框
export function getSelectScore(params) {
  return request({
    url: '/taskresultscore/selectScore',
    method: 'GET',
    params
  });
}

// 查询组织机构下拉框
export function getSelectAllDepart() {
  return request({
    url: '/department/selectAllDepart',
    method: 'GET'
  });
}

// 查询成绩单表头
export function getSelectTittle(params) {
  return request({
    url: '/taskresultscore/selectTittle',
    method: 'GET',
    params
  });
}

// 查询成绩单列表
export function getSelectTaskresultscore(params) {
  return request({
    url: '/taskresultscore/selectTaskresultscore',
    method: 'GET',
    params
  });
}

// 查询成绩详情
export function getSelectScoreDetails(params) {
  return request({
    url: '/taskresultscore/selectScoreDetails',
    method: 'GET',
    params
  });
}

// 新增成绩单
export function addScoreResult(data) {
  return request({
    url: '/taskresultscore/addScoreResult',
    method: 'post',
    data
  });
}

// 查询能力细项下拉框
export function getSelectAbilityDetails(params) {
  return request({
    url: '/taskresultscore/selectAbilityDetails',
    method: 'get',
    params
  });
}

// 查询与自己相关的项目列表
export function getSelectProjectByUser(params) {
  return request({
    url: '/taskresultscore/selectProjectByUser',
    method: 'get',
    params
  });
}

// 查询与自己相关的任务列表
export function getSelectTaskByUser(params) {
  return request({
    url: '/taskresultscore/selectTaskByUser',
    method: 'get',
    params
  });
}

// 查询学生列表
export function getSelectScoreUser(data) {
  return request({
    url: '/taskresultscore/selectScoreUser',
    method: 'post',
    data
  });
}

// 查询项目榜单
export function getSelectProjectList(params) {
  return request({
    url: '/taskresultscore/selectProjectList',
    method: 'get',
    params
  });
}

// 查询模板项目下拉框
export function getSelectProject() {
  return request({
    url: '/taskresultscore/selectProject',
    method: 'get'
  });
}

// 查询跟自己相关的组织机构
export function getSelectdepartByUser() {
  return request({
    url: '/taskresultscore/selectdepartByUser',
    method: 'get'
  });
}

// 查询成绩榜单
export function getSelectScoreList(params) {
  return request({
    url: '/taskresultscore/selectScoreList',
    method: 'get',
    params
  });
}
